<%@ page language="java" import="java.util.*,com.model.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>欢迎访问位置服务专家</title>
	
	<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> 
	<link rel="stylesheet" type="text/css" href="css/styles.css">
	<link rel="stylesheet" type="text/css" href="css/menu.css">
	<script type="text/javascript" src="js/menu.js"></script>
	<script type="text/javascript" src="js/SetSecurity.js"></script>
	
	<%
	  ArrayList<Beanuser> al=new ArrayList<Beanuser>();
	  locationBO lbo=new locationBO();
	  al=lbo.getLocation();
	 
 	%>
  </head>
  
  <body onload="initialize()">
    <div id="header"></div>
	<div id="menu">
	    <ul id="navigation">
		<li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)"> 
			<a href="#">更多</a> 
			<ul> 
				<li><a href="#">统计报表</a></li> 
				<li><a href="#">待添加</a></li> 
				<li><a href="#">待添加</a></li> 
				<li><a href="#">待添加</a></li> 
			</ul> 
		</li> 
			<li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)"> 
			<a href="#">定位</a> 
		<ul> 
			<li><a href="#">实时定位</a></li> 
			<li><a href="#">轨迹回放</a></li> 
			<li><a href="#">菜单3</a></li> 
			<li><a href="#">菜单4</a></li> 
			<li><a href="#">菜单5</a></li> 
		</ul> 
			</li> 
			<li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)"> 
			<a href="#">设置</a> 
		<ul> 
			
			<li><a href="#">用户管理</a></li> 
			<li><a href="SetSecurity.jsp">安全路径</a></li> 
		     <li><a href="#">参数设置</a></li> 
		</ul> 
			</li> 
		</ul>
	</div>
	<div id="main">
	<div id="containe">地图</div>
    <div id="sidebar"> 
    	<div id="search">设置安全路径：
    	<br>
    	<SELECT  name="deviceId" id=u37 size=2  style=" valgin:top;width: 200px;height: 250px"  >
		<% 	for(int i= 0;i<al.size();i++)
			 {
				 Beanuser lt=(Beanuser)al.get(i);
		%>
		<OPTION   value=<%=lt.getDeviceid()%>><%=lt.getName()%></OPTION> 
		<%
		}
		%>
		</SELECT>
		<br>
		<input type="button" onclick="createLineCl()" style="width:75px;align：center ;height: 25px" value="设置"></input>
	  	<input type="button" onclick="clearOverlays()" style="width:75px;align：center ;height: 25px" value="清空"></input>
        </div>		    		
    </div>
	<div id="clearfloat"></div>
	</div>
	<div id="footer">footer</div>
  </body>
</html>
